package com.atguigu.springcloud.controller;

import com.alibaba.fastjson.JSON;
import com.atguigu.springcloud.entity.AiExaminationVo;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;

/**
 * @Description TODO
 * @Author 69003
 * @Date 2020/5/28 17:15
 */
@RestController("/aiExamination")
public class AiExaminationController {

    @ApiOperation("提交ai测验")
    @PostMapping("/commitTest")
    public AiExaminationVo commitTest(@RequestBody AiExaminationVo aiExaminationVo, @RequestParam("testFile") MultipartFile multipartFile) {

        System.out.println(JSON.toJSONString(aiExaminationVo));

        return aiExaminationVo;
    }
}
